package org.example.sub;

import org.example.BeanPostProcessor;
import org.example.Componet;

@Componet
public class MyBeanPostProcessor implements BeanPostProcessor {
    @Override
    public Object beforeInitializeBean(Object bean, String beanName) {
        System.out.println(beanName + "初始化完成");
        return BeanPostProcessor.super.beforeInitializeBean(bean, beanName);
    }

    @Override
    public Object afterInitializeBean(Object bean, String beanName) {
        return BeanPostProcessor.super.afterInitializeBean(bean, beanName);
    }
}
